package com.atguigu.service.impl;

import com.atguigu.dao.CompanyDao;
import com.atguigu.dao.impl.CompanyDaoImpl;
import com.atguigu.pojo.Company;
import com.atguigu.service.CompanyService;

import java.sql.SQLException;
import java.util.List;

public class CompanyServiceImpl implements CompanyService {

    private CompanyDao companyDao = new CompanyDaoImpl();


    @Override
    public List<Company> findAllCompany() throws SQLException {
        List<Company> list = companyDao.findAllCompany();
        return list;
    }
}
